$(function () {
    var thisPage = null,
        user = null,
        html = [];
        
    var feedbackPage = function(){
      this.init();
    };
    feedbackPage.prototype = {
      init:function(){
        this.initData();
        this.bindEvent();
      },
      initData:function(){

      },
      bindEvent:function(){
        
        //点击回退
        $("#back").on("tap", function(){
          back();
        });
        
        //切换类型
        $("p[name='feedType']>span").on("tap", function(){
          $(this).addClass("huaguo").siblings().removeClass("huaguo");
        });
        
        $("#feedbackContent").on("input", function(){
          
          if("" == $(this).val()){
            $("#commit").unbind().addClass("gray_color");
          }else{
            $("#commit").unbind().removeClass("gray_color").on("tap", function(){
              var requestData = {
                
              };
              $.ajax({
              	type:"get",
              	url:"",
              	async:true
              }).done(function(data){
                
              }).fail(function(data){
                var infor = JSON.parse(data);
                $.alert(infor.Message);
              });
            });
          }
          
        });
      }
    };
    thisPage = new feedbackPage();
})
